home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip Kasım 2000.iso / prog / basic / 09 / AXA2.CAB / DAJAVA.CAB / com / ms / dxmedia / Vector3Bvr.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-10-14  |  2.7 KB  |  150 lines

  1. package com.ms.dxmedia;
  2.  
  3. import com.ms.com.ComFailException;
  4. import com.ms.dxmedia.rawcom.DAVector3;
  5. import com.ms.dxmedia.rawcom.IDABehavior;
  6. import com.ms.dxmedia.rawcom.IDAVector3;
  7.  
  8. public class Vector3Bvr extends Behavior {
  9.    private IDAVector3 _COMptr;
  10.  
  11.    public NumberBvr getZ() {
  12.       try {
  13.          return new NumberBvr(this.getCOMPtr().getZ());
  14.       } catch (ComFailException var3) {
  15.          throw StaticsBase.handleError(var3);
  16.       }
  17.    }
  18.  
  19.    public Vector3Bvr normalize() {
  20.       try {
  21.          return new Vector3Bvr(this.getCOMPtr().Normalize());
  22.       } catch (ComFailException var3) {
  23.          throw StaticsBase.handleError(var3);
  24.       }
  25.    }
  26.  
  27.    public NumberBvr getX() {
  28.       try {
  29.          return new NumberBvr(this.getCOMPtr().getX());
  30.       } catch (ComFailException var3) {
  31.          throw StaticsBase.handleError(var3);
  32.       }
  33.    }
  34.  
  35.    public void setCOMBvr(IDABehavior var1) {
  36.       super.setCOMBvr(var1);
  37.       this._COMptr = (IDAVector3)var1;
  38.    }
  39.  
  40.    public NumberBvr lengthSquared() {
  41.       try {
  42.          return new NumberBvr(this.getCOMPtr().getLengthSquared());
  43.       } catch (ComFailException var3) {
  44.          throw StaticsBase.handleError(var3);
  45.       }
  46.    }
  47.  
  48.    public Vector3Bvr(IDAVector3 var1) {
  49.       super(var1);
  50.       this._COMptr = var1;
  51.    }
  52.  
  53.    public Vector3Bvr() {
  54.       super((IDABehavior)null);
  55.       this._COMptr = null;
  56.    }
  57.  
  58.    public static Vector3Bvr newUninitBvr() {
  59.       return new Vector3Bvr(new DAVector3());
  60.    }
  61.  
  62.    protected Behavior newUninitBehavior() {
  63.       return newUninitBvr();
  64.    }
  65.  
  66.    public NumberBvr getY() {
  67.       try {
  68.          return new NumberBvr(this.getCOMPtr().getY());
  69.       } catch (ComFailException var3) {
  70.          throw StaticsBase.handleError(var3);
  71.       }
  72.    }
  73.  
  74.    public IDAVector3 getCOMPtr() {
  75.       return this._COMptr;
  76.    }
  77.  
  78.    public Vector3Bvr transform(Transform3Bvr var1) {
  79.       try {
  80.          return new Vector3Bvr(this.getCOMPtr().Transform(var1.getCOMPtr()));
  81.       } catch (ComFailException var4) {
  82.          throw StaticsBase.handleError(var4);
  83.       }
  84.    }
  85.  
  86.    public Vector3Bvr mul(NumberBvr var1) {
  87.       try {
  88.          return new Vector3Bvr(this.getCOMPtr().MulAnim(var1.getCOMPtr()));
  89.       } catch (ComFailException var4) {
  90.          throw StaticsBase.handleError(var4);
  91.       }
  92.    }
  93.  
  94.    public Vector3Bvr mul(double var1) {
  95.       try {
  96.          return new Vector3Bvr(this.getCOMPtr().Mul(var1));
  97.       } catch (ComFailException var5) {
  98.          throw StaticsBase.handleError(var5);
  99.       }
  100.    }
  101.  
  102.    public NumberBvr length() {
  103.       try {
  104.          return new NumberBvr(this.getCOMPtr().getLength());
  105.       } catch (ComFailException var3) {
  106.          throw StaticsBase.handleError(var3);
  107.       }
  108.    }
  109.  
  110.    public NumberBvr getSphericalCoordLength() {
  111.       try {
  112.          return new NumberBvr(this.getCOMPtr().getSphericalCoordLength());
  113.       } catch (ComFailException var3) {
  114.          throw StaticsBase.handleError(var3);
  115.       }
  116.    }
  117.  
  118.    public Vector3Bvr div(NumberBvr var1) {
  119.       try {
  120.          return new Vector3Bvr(this.getCOMPtr().DivAnim(var1.getCOMPtr()));
  121.       } catch (ComFailException var4) {
  122.          throw StaticsBase.handleError(var4);
  123.       }
  124.    }
  125.  
  126.    public Vector3Bvr div(double var1) {
  127.       try {
  128.          return new Vector3Bvr(this.getCOMPtr().Div(var1));
  129.       } catch (ComFailException var5) {
  130.          throw StaticsBase.handleError(var5);
  131.       }
  132.    }
  133.  
  134.    public NumberBvr getSphericalCoordXYAngle() {
  135.       try {
  136.          return new NumberBvr(this.getCOMPtr().getSphericalCoordXYAngle());
  137.       } catch (ComFailException var3) {
  138.          throw StaticsBase.handleError(var3);
  139.       }
  140.    }
  141.  
  142.    public NumberBvr getSphericalCoordYZAngle() {
  143.       try {
  144.          return new NumberBvr(this.getCOMPtr().getSphericalCoordYZAngle());
  145.       } catch (ComFailException var3) {
  146.          throw StaticsBase.handleError(var3);
  147.       }
  148.    }
  149. }
  150.